clean up pcre package
[openwrt.git] / openwrt / package / ez-ipupdate / rules
1 #!/usr/bin/make -f
2
3 ifeq ($(strip ${IPKG_DIR}),)
4 IPKG_DIR := $(shell pwd)/../..
5 endif
6
7 include $(IPKG_DIR)/Makefile.inc
8
9 ##
10
11 EZ_IPUPDATE_DIR := ipkg/ez-ipupdate
12
13 BUILD_DEPS := \
14
15 ##
16
17 all: package
18
19 build: .stamp-built
20
21 install: .stamp-installed
22
23 clean:
24
25 $(MAKE) clean
26 rm -rf .stamp-*
27 rm -rf $(EZ_IPUPDATE_DIR)/etc/ez-ipupdate
28 rm -rf $(EZ_IPUPDATE_DIR)/usr
29
30
31 control:
32
33 @cat $(EZ_IPUPDATE_DIR)/CONTROL/control
34 @echo
35
36
37 binary package: .stamp-installed
38
39 @cat $(EZ_IPUPDATE_DIR)/CONTROL/control
40 $(IPKG_BUILD) $(EZ_IPUPDATE_DIR) $(IPKG_TARGET_DIR)
41
42
43 .stamp-built: $(BUILD_DEPS)
44
45 rm -rf config.cache
46 $(TARGET_CONFIGURE_OPTS) \
47 CFLAGS="$(TARGET_CFLAGS)" \
48 ./configure \
49 --target=$(GNU_TARGET_NAME) \
50 --host=$(GNU_TARGET_NAME) \
51 --build=$(GNU_HOST_NAME) \
52 --prefix=/usr \
53 --exec-prefix=/usr \
54 --bindir=/usr/bin \
55 --datadir=/usr/share \
56 --includedir=/usr/include \
57 --infodir=/usr/share/info \
58 --libdir=/usr/lib \
59 --libexecdir=/usr/lib/locate \
60 --localstatedir=/var/lib \
61 --mandir=/usr/share/man \
62 --sbindir=/usr/sbin \
63 --sysconfdir=/etc \
64 $(DISABLE_NLS) \
65
66 $(MAKE) \
67 $(TARGET_CONFIGURE_OPTS) \
68
69 touch .stamp-built
70
71
72 .stamp-installed: .stamp-built
73
74 mkdir -p $(EZ_IPUPDATE_DIR)
75
76 $(MAKE) \
77 DESTDIR="$(shell pwd)/$(EZ_IPUPDATE_DIR)" \
78 install
79
80 mkdir -p $(EZ_IPUPDATE_DIR)/etc/ez-ipupdate
81 cp -a example-dyndns.conf $(EZ_IPUPDATE_DIR)/etc/ez-ipupdate/
82
83 $(STRIP) $(EZ_IPUPDATE_DIR)/usr/bin/*
84
85 chmod 0755 $(EZ_IPUPDATE_DIR)/CONTROL
86 chmod 0644 $(EZ_IPUPDATE_DIR)/CONTROL/control
87 chmod 0755 $(EZ_IPUPDATE_DIR)/etc
88 chmod 0700 $(EZ_IPUPDATE_DIR)/etc/ez-ipupdate
89 chmod 0600 $(EZ_IPUPDATE_DIR)/etc/ez-ipupdate/*
90 chmod 0755 $(EZ_IPUPDATE_DIR)/usr
91 chmod 0755 $(EZ_IPUPDATE_DIR)/usr/bin
92 chmod 0755 $(EZ_IPUPDATE_DIR)/usr/bin/ez-ipupdate
93
94 touch .stamp-installed
95
96
97 .PHONY: build install clean control binary package
This page took 0.040162 seconds and 5 git commands to generate.