source: freewrt/package/webif/Makefile@ d419478

freewrt_1_0 freewrt_2_0
Last change on this file since d419478 was d419478, checked in by Thorsten Glaser <tg@…>, 19 years ago
  • whitespace cleanup, while here
  • move WRKDIR and DISTFILES definition into PKG_template
  • define WRKDIR via parent BUILD_DIR instead of going up from WRKSRC
  • use a sub-directory as WRKDIR, like BSD
  • rename PKG_BUILD_DIR into WRKBUILD
  • define WRKBUILD relative via WRKDIR
  • rename PKG_INSTALL_DIR into WRKINST
  • fix a few dependencies
  • make use of common cases in the definition of WRKBUILD and WRKINST, removing many redundant lines
  • use WRKDIR instead of BUILD_DIR in places where the latter was used previously
  • while here, remove PKG_CAT stuff

this only affects packages, for now

git-svn-id: svn://www.freewrt.org/trunk/freewrt@303 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 974 bytes
Line 
1# $Id: Makefile 3201 2006-02-09 08:59:52Z nbd $
2
3include $(TOPDIR)/rules.mk
4
5PKG_NAME:=webif
6PKG_VERSION:=0.2
7PKG_RELEASE:=1
8
9
10include $(TOPDIR)/package/rules.mk
11
12$(eval $(call PKG_template,WEBIF,webif,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
13
14$(WRKBUILD)/.configured:
15 touch $@
16
17$(WRKBUILD)/.built:
18 $(TARGET_CC) $(TARGET_CFLAGS) -o $(WRKBUILD)/webif-page src/webif-page.c
19 $(TARGET_CC) $(TARGET_CFLAGS) -o $(WRKBUILD)/bstrip src/bstrip.c
20 $(STRIP) $(WRKBUILD)/webif-page $(WRKBUILD)/bstrip
21 touch $@
22
23$(IPKG_WEBIF):
24 cp -a ./files/www ./files/usr $(IDIR_WEBIF)/
25 install -d $(IDIR_WEBIF)/usr/bin
26 install -m0755 $(WRKBUILD)/webif-page $(IDIR_WEBIF)/usr/bin/webif-page
27 install -m0755 $(WRKBUILD)/bstrip $(IDIR_WEBIF)/usr/bin/bstrip
28 install -d $(IDIR_WEBIF)/etc/init.d
29 install -m0755 ./files/S50httpd $(IDIR_WEBIF)/etc/init.d/S50httpd
30 find $(IDIR_WEBIF) -name CVS | xargs rm -rf
31 find $(IDIR_WEBIF) -name .svn | xargs rm -rf
32 $(IPKG_BUILD) $(IDIR_WEBIF) $(PACKAGE_DIR)
33
Note: See TracBrowser for help on using the repository browser.