-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile.am
35 lines (27 loc) · 1.06 KB
/
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
26
27
28
29
30
31
32
33
34
35
AUTOMAKE_OPTIONS = subdir-objects
SUBDIRS =
EXTRA_DIST =
dist_noinst_DATA = biosdevname.rules.in biosdevname.spec.fedora biosdevname.spec.suse biosdevname.1
CLEANFILES = version src/bios_dev_name.h
install-data-local:
mkdir -p $(DESTDIR)@RULEDIR@
$(INSTALL_DATA) $(top_srcdir)/biosdevname.rules.in $(DESTDIR)@RULEDEST@
uninstall-local:
rm -f $(DESTDIR)@RULEDEST@
include src/Makefile.am
# extra space at beginning to work around automake... :(
ifndef SPEC_FILE
SPEC_FILE=biosdevname.spec.fedora
endif
rpm: dist
mkdir -p dist/{SOURCES,BUILD,RPMS,SRPMS,SPECS}
cp $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.gz dist/SOURCES
cp $(SPEC_FILE) dist/SPECS/@[email protected]
rpmbuild --define "_topdir $$PWD/dist" -ba --nodeps dist/SPECS/@[email protected] ;
rm -rf dist/{SOURCES,BUILD,SPECS}
srpm: dist
mkdir -p dist/{SOURCES,BUILD,RPMS,SRPMS,SPECS}
cp $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.gz dist/SOURCES
cp $(SPEC_FILE) dist/SPECS/@[email protected]
rpmbuild --define "_topdir $$PWD/dist" -bs --nodeps dist/SPECS/@[email protected] ;
rm -rf dist/{SOURCES,BUILD,SPECS}