/[soft]/ldetect-lst/trunk/Makefile
ViewVC logotype

Contents of /ldetect-lst/trunk/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8685 - (show annotations) (download)
Thu Aug 1 20:35:11 2013 UTC (5 years, 9 months ago) by tmb
File size: 1644 byte(s)
0.1.330
1 include Makefile.config
2
3 NAME = ldetect-lst
4 VERSION := 0.1.330
5
6 FILES = AUTHORS ChangeLog Makefile Makefile.config convert lst update-ldetect-lst
7
8 .PHONY: changelog log ChangeLog
9
10 build:
11 $(MAKE) -C lst build
12 $(MAKE) -C dkms-modules-info build
13
14 check:
15 $(MAKE) -C lst check
16
17 clean:
18 rm -f *~
19 $(MAKE) -C lst clean
20
21 install: build
22 install -d $(bindir) $(sbindir) $(dir)
23 $(MAKE) -C lst install
24 $(MAKE) -C dkms-modules-info install
25 install update-ldetect-lst $(sbindir)
26 install convert/merge2pcitable.pl $(bindir)
27
28 # rules to build a distributable rpm
29
30 dist-svn:
31 svn export -q -rBASE . $(NAME)-$(VERSION)
32 tar cfJ ../$(NAME)-$(VERSION).tar.xz $(NAME)-$(VERSION)
33 rm -rf $(NAME)-$(VERSION)
34
35 dist-git:
36 @git archive --prefix=$(NAME)-$(VERSION)/ HEAD | xz >../$(NAME)-$(VERSION).tar.xz;
37
38
39 dist: dis
40 dis: clean
41 rm -rf ../$(NAME)-$(VERSION)*.tar* $(NAME)-$(VERSION)
42 @if [ -e ".svn" ]; then \
43 $(MAKE) dist-svn; \
44 elif [ -e ".git" ]; then \
45 $(MAKE) dist-git; \
46 else \
47 echo "Unknown SCM (not SVN nor GIT)";\
48 exit 1; \
49 fi;
50
51 $(info $(shell dirname $$PWD)/$(NAME)-$(VERSION).tar.xz is ready)
52
53 log: changelog
54
55 changelog: ChangeLog
56
57 ChangeLog: ../common/username.xml
58 @if test -d "$$PWD/.git"; then \
59 ../common/gitlog-to-changelog > $@.tmp \
60 && mv -f $@.tmp $@ \
61 || (rm -f $@.tmp; \
62 echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
63 (test -f $@ || echo git-log is required to generate this file >> $@)); \
64 else \
65 svn2cl --accum --authors ../common/username.xml; \
66 rm -f *.bak; \
67 svn commit -m "Generated by svn2cl the `LC_TIME=C date '+%d_%b'`" ChangeLog; \
68 fi;
69
70 # Makefile ends here

Properties

Name Value
svn:eol-style native

  ViewVC Help
Powered by ViewVC 1.1.26