forked from westermo/libnsh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
25 lines (24 loc) · 876 Bytes
/
Makefile.am
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
ACLOCAL_AMFLAGS = -I m4
doc_DATA = LICENSE ChangeLog.md README.md
EXTRA_DIST = LICENSE ChangeLog.md README.md autogen.sh
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libnsh.pc
EXAMPLES =
if ENABLE_EXAMPLES
EXAMPLES += examples
endif
SUBDIRS = src $(EXAMPLES) test
# Target to run when building a release
release: distcheck
@for file in $(DIST_ARCHIVES); do \
md5sum $$file > ../$$file.md5; \
sha256sum $$file > ../$$file.sha256; \
done
@mv $(DIST_ARCHIVES) ../
@echo
@echo "Resulting release files ======================================================================="
@for file in $(DIST_ARCHIVES); do \
printf "%-30s Distribution tarball\n" $$file; \
printf "%-30s " $$file.md5; cat ../$$file.md5 | cut -f1 -d' '; \
printf "%-30s " $$file.sha256; cat ../$$file.sha256 | cut -f1 -d' '; \
done