-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Bart Sjerps
committed
Sep 25, 2018
1 parent
9e9566c
commit 49f9cc0
Showing
9 changed files
with
576 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Compiled Object files | ||
*.slo | ||
*.lo | ||
*.o | ||
*.obj | ||
|
||
# Precompiled Headers | ||
*.gch | ||
*.pch | ||
|
||
# Compiled Dynamic libraries | ||
*.so | ||
*.dylib | ||
*.dll | ||
|
||
# Fortran module files | ||
*.mod | ||
*.smod | ||
|
||
# Compiled Static libraries | ||
*.lai | ||
*.la | ||
*.a | ||
*.lib | ||
|
||
# Executables | ||
*.exe | ||
*.out | ||
*.app | ||
|
||
# Archives | ||
*.zip | ||
|
||
# Swap files | ||
*.swp | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,35 +4,37 @@ | |
# Author : Bart Sjerps <[email protected]> | ||
# License : GPLv3+ | ||
# --------------------------------------------------------------------------- | ||
NAME := $(RPM_PACKAGE_NAME) | ||
VERSION = $(shell rpm -q --qf '%{version}\n' --specfile ../$(NAME).spec) | ||
SRCDIR = $(shell rpm --eval %_sourcedir) | ||
|
||
version = 1.4.4 | ||
prefix = /usr/local | ||
bindir = $(prefix)/bin | ||
mandir = $(prefix)/share/man | ||
docdir = $(prefix)/share/doc | ||
files := $(shell find files/ -type f | cut -d/ -f2-) | ||
dirs := $(shell find files/ -type d | cut -d/ -f2-) | ||
|
||
sysconfdir = /etc | ||
man1 = $(wildcard bin/*) | ||
man8 = $(wildcard sbin/*) | ||
|
||
all: | ||
|
||
src: | ||
tar -jcvf $(HOME)/SOURCES/asmdisks-$(version).tbz2 --transform "s|^|asmdisks/|" * | ||
man1dir = $(DESTDIR)/usr/share/man/man1 | ||
man8dir = $(DESTDIR)/usr/share/man/man8 | ||
|
||
rpm: src | ||
cd ../SPECS ; rpmbuild -ba asmdisks.spec | ||
.PHONY: all install man | ||
|
||
install: | ||
install -d 0755 $(bindir) | ||
install -d 0755 $(sysconfdir)/bash_completion.d | ||
install -d 0755 $(mandir)/man1 | ||
install -d 0755 $(docdir)/asmdisks | ||
install -m 0755 bin/asm bin/asmstat bin/diskheader bin/wipedisk $(bindir) | ||
install -m 0644 bin/asm.bash $(sysconfdir)/bash_completion.d | ||
install -m 0644 man/* $(mandir)/man1/ | ||
install -m 0444 doc/* $(docdir)/asmdisks/ | ||
|
||
clean: | ||
rm $(HOME)/SOURCES/asmdisks-$(version).tbz2 | ||
all: | ||
|
||
.PHONY: install | ||
man: | ||
install -m 0755 -d $(man1dir) | ||
install -m 0755 -d $(man8dir) | ||
$(foreach exe,$(man1),$(exe) --mandump > $(man1dir)/$(notdir $(exe)).1 ;echo mandump $(exe);) | ||
$(foreach exe,$(man8),$(exe) --mandump > $(man8dir)/$(notdir $(exe)).8 ;echo mandump $(exe);) | ||
find $(man1dir) $(man8dir) -type f | xargs -L1 gzip | ||
|
||
install: man | ||
install -d 0755 $(DESTDIR)/usr/bin | ||
install -d 0755 $(DESTDIR)/usr/share/doc/asmdisks | ||
|
||
install -m 0755 -pt $(DESTDIR)/usr/bin bin/* | ||
install -m 0755 -pt $(DESTDIR)/usr/share/doc/asmdisks doc/* | ||
|
||
for d in $(dirs); do install -m 0755 -d $(DESTDIR)/$$d ; done | ||
for f in $(files); do install -m 0644 -pt $(DESTDIR)/$$(dirname $$f)/ files/$$f ; done | ||
|
Oops, something went wrong.