File: rules

package info (click to toggle)
zpaq 1.10-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 676 kB
  • ctags: 572
  • sloc: cpp: 9,136; sh: 218; makefile: 16
file content (32 lines) | stat: -rwxr-xr-x 712 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/make -f

PACKAGE		= zpaq
CHANGELOG 	= debian/upstream.changelog
CXX		= g++

# -DOPT Do not use (Upstream's note)
# -DNDEBUG removes run time checks for better speed.

LIBS 	 = -lm
CXXFLAGS += -I. -Wall -pedantic -DNDEBUG -fomit-frame-pointer

get-changelog:
	awk '/History/,/_eof_/ {print} ' readme.txt > $(CHANGELOG)

man:
	$(MAKE) -C debian -f pod2man.mk PACKAGE=$(PACKAGE) makeman

override_dh_installchangelogs: get-changelog
	dh_installchangelogs $(CHANGELOG)

override_dh_auto_build: get-changelog man
	$(CXX) $(CXXFLAGS) -o $(PACKAGE) $(PACKAGE).cpp $(LIBS)
# Skip. No use for regular user
#	$(CXX) $(CXXFLAGS) -o lzppre lzppre.cpp $(LIBS)

%:
	dh  $@

.PHONY: get-changelog man

# End of file