Skip to content

Commit

Permalink
add demos to dj64-dev [#5]
Browse files Browse the repository at this point in the history
  • Loading branch information
stsp committed Jun 15, 2024
1 parent c37e3af commit 571681c
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
1 change: 1 addition & 0 deletions debian/dj64-dev.install
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ usr/bin/*
usr/share/pkgconfig/dj64.pc
usr/share/pkgconfig/dj64static.pc
usr/share/man/man1/*
usr/share/doc/dj64/*
13 changes: 13 additions & 0 deletions demos/makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
TOP ?= ..
PREFIX ?= /usr/local
INSTALL ?= install

all:
$(MAKE) -C hello
$(MAKE) -C helloasm
Expand All @@ -12,3 +16,12 @@ clean:
$(MAKE) -C hello clean
$(MAKE) -C helloasm clean
$(MAKE) -C rmcb clean

src_install: clean
for i in `find . -maxdepth 1 -type d ! -path . -printf '%P\n'`; do \
$(INSTALL) -d $(DESTDIR)$(PREFIX)/share/doc/dj64/demos/$$i; \
$(INSTALL) -m 0644 $$i/* $(DESTDIR)$(PREFIX)/share/doc/dj64/demos/$$i; \
done

src_uninstall:
$(RM) -r $(DESTDIR)$(PREFIX)/share/doc/dj64
3 changes: 2 additions & 1 deletion dj64.spec.rpkg
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ This package contains tools and headers for building dj64-enabled programs.
%{_bindir}/*
%{_datadir}/pkgconfig/dj64.pc
%{_datadir}/pkgconfig/dj64static.pc
%doc %{_mandir}/man1/*
%{_mandir}/man1/*
%{_docdir}/dj64
%end

%package dj64-devel-static
Expand Down
6 changes: 5 additions & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ install_djdev64:
@echo
@echo "Done installing. You may need to run \"sudo ldconfig\" now."

install: install_dj64 install_djdev64
install: install_dj64 install_djdev64 install_demos

uninstall:
$(RM) -r $(DESTDIR)$(PREFIX)/bin/dj64-gcc
Expand All @@ -112,6 +112,7 @@ uninstall:
$(RM) $(DESTDIR)$(LIBDIR)/$(notdir $(DJSTUB64DEVL))
$(RM) $(DESTDIR)$(LIBDIR)/$(notdir $(DJSTUB64LIB))
ldconfig
$(MAKE) -C demos src_uninstall

clean: demos_clean
$(MAKE) -C src clean
Expand Down Expand Up @@ -142,3 +143,6 @@ demos_djgpp:

demos_clean:
$(MAKE) -C demos clean

install_demos:
$(MAKE) -C demos src_install

0 comments on commit 571681c

Please sign in to comment.