Simplify rules files
Benjamin Renard

Benjamin Renard commited on 2014-02-07 16:16:54
Showing 3 changed files, with 13 additions and 99 deletions.

... ...
@@ -1,101 +1,4 @@
1 1
 #!/usr/bin/make -f
2
-# -*- makefile -*-
3 2
 
4
-# Uncomment this to turn on verbose mode.
5
-#export DH_VERBOSE=1
6
-
7
-
8
-
9
-
10
-
11
-configure: configure-stamp
12
-configure-stamp:
13
-	dh_testdir
14
-	# Add here commands to configure the package.
15
-
16
-	touch configure-stamp
17
-
18
-
19
-build: build-stamp
20
-
21
-build-stamp: configure-stamp  
22
-	dh_testdir
23
-
24
-	# Add here commands to compile the package.
25
-	cd $(CURDIR) && ./autogen.sh
26
-	cd $(CURDIR) && $(MAKE)
27
-
28
-	touch $@
29
-
30
-clean: 
31
-	dh_testdir
32
-	dh_testroot
33
-	rm -f build-stamp configure-stamp
34
-
35
-	# Add here commands to clean up after the build process.
36
-	cd $(CURDIR) && $(MAKE) clean
37
-
38
-	dh_clean 
39
-
40
-install: build
41
-	dh_testdir
42
-	dh_testroot
43
-	dh_clean -k 
44
-	dh_installdirs
45
-
46
-	# Add here commands to install the package into debian/wifidog-gateway.
47
-	cp $(CURDIR)/wifidog.conf $(CURDIR)/debian/wifidog-gateway/etc
48
-	cp $(CURDIR)/wifidog-msg.html $(CURDIR)/debian/wifidog-gateway/etc
49
-
50
-	cp $(CURDIR)/debian/wifidog-gateway.syctl $(CURDIR)/debian/wifidog-gateway/etc/sysctl.d
51
-
52
-	cp $(CURDIR)/wifidog-msg.html $(CURDIR)/debian/wifidog-gateway/etc
53
-	cp $(CURDIR)/src/wdctl $(CURDIR)/debian/wifidog-gateway/usr/bin
54
-	cp $(CURDIR)/src/.libs/wifidog $(CURDIR)/debian/wifidog-gateway/usr/bin
55
-
56
-	cp $(CURDIR)/libhttpd/httpd.h $(CURDIR)/debian/wifidog-gateway/usr/include/wifidog
57
-
58
-	cp $(CURDIR)/libhttpd/.libs/libhttpd.a $(CURDIR)/debian/wifidog-gateway/usr/lib
59
-	cp $(CURDIR)/libhttpd/.libs/libhttpd.la $(CURDIR)/debian/wifidog-gateway/usr/lib
60
-	cp $(CURDIR)/libhttpd/.libs/libhttpd.so.0.0.0 $(CURDIR)/debian/wifidog-gateway/usr/lib
61
-	ln -s libhttpd.so.0.0.0 $(CURDIR)/debian/wifidog-gateway/usr/lib/libhttpd.so.0
62
-	ln -s libhttpd.so.0.0.0 $(CURDIR)/debian/wifidog-gateway/usr/lib/libhttpd.so
63
-
64
-
65
-# Build architecture-independent files here.
66
-binary-indep: build install
67
-# We have nothing to do by default.
68
-
69
-# Build architecture-dependent files here.
70
-binary-arch: build install
71
-	dh_testdir
72
-	dh_testroot
73
-	dh_installchangelogs ChangeLog
74
-	dh_installdocs
75
-	dh_installexamples
76
-#	dh_install
77
-#	dh_installmenu
78
-#	dh_installdebconf	
79
-	dh_installlogrotate
80
-#	dh_installemacsen
81
-#	dh_installpam
82
-#	dh_installmime
83
-#	dh_python
84
-	dh_installinit
85
-#	dh_installcron
86
-#	dh_installinfo
87
-	dh_installman
88
-	dh_link
89
-	dh_strip
90
-	dh_compress
91
-	dh_fixperms
92
-#	dh_perl
93
-#	dh_makeshlibs
94
-	dh_installdeb
95
-	dh_shlibdeps
96
-	dh_gencontrol
97
-	dh_md5sums
98
-	dh_builddeb
99
-
100
-binary: binary-indep binary-arch
101
-.PHONY: build clean binary-indep binary-arch binary install configure
3
+%:
4
+	dh  $@
... ...
@@ -0,0 +1,9 @@
1
+wifidog.conf etc
2
+wifidog-msg.html etc
3
+debian/wifidog-gateway.sysctl etc/sysctl.d
4
+src/wdctl usr/bin
5
+src/.libs/wifidog usr/bin
6
+libhttpd/httpd.h usr/include/wifidog
7
+libhttpd/.libs/libhttpd.a usr/lib
8
+libhttpd/.libs/libhttpd.la usr/lib
9
+libhttpd/.libs/libhttpd.so.0.0.0 usr/lib
... ...
@@ -0,0 +1,2 @@
1
+usr/lib/libhttpd.so.0.0.0 usr/lib/libhttpd.so.0
2
+usr/lib/libhttpd.so.0.0.0 usr/lib/libhttpd.so
0 3