Source reconstructed at patch state 1 of 2 — not the installed (fully patched) source.
2 Debian patches touch this file
-
Use DESTDIR in the makefile, so dh_auto_install can do it wonders
- Author
- Logan Rosen <[email protected]>
- Forwarded
- no
-
accepts compiler and compiler/linker flags from the env
- Author
- Logan Rosen <[email protected]>
- Forwarded
- no
| 1 |
PREFIX=$(DESTDIR)/usr |
| 2 |
|
| 3 |
all: eancheck |
| 4 |
|
| 5 |
eancheck: eancheck.o |
| 6 |
g++ -o $@ $< |
| 7 |
|
| 8 |
eancheck.o: eancheck.cpp |
| 9 |
g++ -Wno-deprecated -c -o $@ $< |
| 10 |
|
| 11 |
eancheck.1.gz: |
| 12 |
gzip -c -9 eancheck.1 > eancheck.1.gz |
| 13 |
|
| 14 |
install: eancheck eancheck.1.gz |
| 15 |
install -c -D -o root -g root -m 755 eancheck $(PREFIX)/bin/eancheck |
| 16 |
install -c -D -o root -g root -m 644 eancheck.h $(PREFIX)/include/eancheck.h |
| 17 |
install -c -D -o root -g root -m 644 README $(PREFIX)/share/doc/eancheck/README |
| 18 |
install -c -D -o root -g root -m 644 eancheck.1.gz $(PREFIX)/share/man/man1/eancheck.1.gz |
| 19 |
|
| 20 |
uninstall: |
| 21 |
rm $(PREFIX)/bin/eancheck |
| 22 |
rm $(PREFIX)/include/eancheck.h |
| 23 |
rm -rf $(PREFIX)/share/doc/eancheck |
| 24 |
rm $(PREFIX)/share/man/man1/eancheck.1.gz |
| 25 |
|
| 26 |
clean: |
| 27 |
-rm eancheck |
| 28 |
-rm eancheck.o |
| 29 |
-rm eancheck.1.gz |