source: freewrt/package/webif/Makefile@ 8d7467a

freewrt_1_0 freewrt_2_0
Last change on this file since 8d7467a was e60801e, checked in by Thorsten Glaser <tg@…>, 19 years ago

fix webif for real: there is no such thing as 'cp -a'

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

  • Property mode set to 100644
File size: 1023 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
9include $(TOPDIR)/package/rules.mk
10
11$(eval $(call PKG_template,WEBIF,webif,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
12
13$(WRKBUILD)/.prepared:
14 mkdir -p ${WRKBUILD}
15 touch $@
16
17$(WRKBUILD)/.configured:
18 touch $@
19
20$(WRKBUILD)/.built:
21 $(TARGET_CC) $(TARGET_CFLAGS) -o $(WRKBUILD)/webif-page src/webif-page.c
22 $(TARGET_CC) $(TARGET_CFLAGS) -o $(WRKBUILD)/bstrip src/bstrip.c
23 $(STRIP) $(WRKBUILD)/webif-page $(WRKBUILD)/bstrip
24 touch $@
25
26$(IPKG_WEBIF):
27 cd files; pax -rw www usr $(IDIR_WEBIF)/
28 install -d $(IDIR_WEBIF)/usr/bin
29 install -m0755 $(WRKBUILD)/webif-page $(IDIR_WEBIF)/usr/bin/webif-page
30 install -m0755 $(WRKBUILD)/bstrip $(IDIR_WEBIF)/usr/bin/bstrip
31 install -d $(IDIR_WEBIF)/etc/init.d
32 install -m0755 ./files/S50httpd $(IDIR_WEBIF)/etc/init.d/S50httpd
33 find $(IDIR_WEBIF) -name CVS | xargs rm -rf
34 find $(IDIR_WEBIF) -name .svn | xargs rm -rf
35 $(IPKG_BUILD) $(IDIR_WEBIF) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.