mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	Makefile
This commit is contained in:
		
							parent
							
								
									6f902af94d
								
							
						
					
					
						commit
						283d2f377a
					
				
					 1 changed files with 22 additions and 4 deletions
				
			
		|  | @ -1,21 +1,23 @@ | ||||||
| include pandoc-man.mk | include pandoc-man.mk | ||||||
| 
 | 
 | ||||||
| ifeq ($(PREFIX),) | ifeq ($(PREFIX),) | ||||||
|     PREFIX := /usr/local |     PREFIX := /usr | ||||||
| endif | endif | ||||||
| 
 | 
 | ||||||
| datarootdir := $(PREFIX)/share | datarootdir := $(PREFIX)/share | ||||||
| datadir := $(datarootdir) | datadir := $(datarootdir) | ||||||
| mandir := $(datarootdir)/man | mandir := $(datarootdir)/man | ||||||
| bindir :=  $(PREFIX)/bin | bindir :=  $(PREFIX)/bin | ||||||
|  | ICONS_DIR := config/icons | ||||||
| 
 | 
 | ||||||
| all: quickget.1 quickemu.1 quickemu_conf.1 | all: distrohopper.1 quickget.1 quickemu.1 quickemu_conf.1 | ||||||
| 
 | 
 | ||||||
| clean: | clean: | ||||||
| 	rm *.1 | 	rm *.1 | ||||||
| 
 | 
 | ||||||
| install_docs: all | install_docs: all | ||||||
| 	install -d $(DESTDIR)$(mandir)/man1 | 	install -d $(DESTDIR)$(mandir)/man1 | ||||||
|  | 	install -m 644 distrohopper.1 $(DESTDIR)$(mandir)/man1 | ||||||
| 	install -m 644 quickget.1 $(DESTDIR)$(mandir)/man1 | 	install -m 644 quickget.1 $(DESTDIR)$(mandir)/man1 | ||||||
| 	install -m 644 quickemu.1 $(DESTDIR)$(mandir)/man1 | 	install -m 644 quickemu.1 $(DESTDIR)$(mandir)/man1 | ||||||
| 	install -m 644 quickemu_conf.1 $(DESTDIR)$(mandir)/man1 | 	install -m 644 quickemu_conf.1 $(DESTDIR)$(mandir)/man1 | ||||||
|  | @ -24,19 +26,35 @@ install_docs: all | ||||||
| 
 | 
 | ||||||
| install_bins: | install_bins: | ||||||
| 	install -d $(DESTDIR)$(bindir) | 	install -d $(DESTDIR)$(bindir) | ||||||
|  | 	install -m 755 ../dh $(DESTDIR)$(bindir) | ||||||
| 	install -m 755 ../quickget $(DESTDIR)$(bindir) | 	install -m 755 ../quickget $(DESTDIR)$(bindir) | ||||||
| 	install -m 755 ../quickemu $(DESTDIR)$(bindir) | 	install -m 755 ../quickemu $(DESTDIR)$(bindir) | ||||||
| 	install -m 755 ../macrecovery $(DESTDIR)$(bindir) | 	install -m 755 ../macrecovery $(DESTDIR)$(bindir) | ||||||
| 
 | 
 | ||||||
| install: install_bins  install_docs | install_icons: | ||||||
|  | 	install -d $(DESTDIR)$(datadir)/icons/dh | ||||||
|  | 	install -m 644 $(ICONS_DIR)/*.svg $(DESTDIR)$(datadir)/icons/dh | ||||||
|  | 	install -m 644 $(ICONS_DIR)/*.png $(DESTDIR)$(datadir)/icons/dh | ||||||
| 
 | 
 | ||||||
| uninstall:: | install: install_bins  install_docs install_icons | ||||||
|  | 
 | ||||||
|  | uninstall_icons: | ||||||
|  | 	rm -f $(DESTDIR)$(datadir)/icons/dh/*.svg | ||||||
|  | 	rm -f $(DESTDIR)$(datadir)/icons/dh/*.png | ||||||
|  | 
 | ||||||
|  | uninstall_docs: | ||||||
|  | 	rm -f $(DESTDIR)$(mandir)/man1/distrohopper.1 | ||||||
| 	rm -f $(DESTDIR)$(mandir)/man1/quickget.1 | 	rm -f $(DESTDIR)$(mandir)/man1/quickget.1 | ||||||
| 	rm -f $(DESTDIR)$(mandir)/man1/quickemu.1 | 	rm -f $(DESTDIR)$(mandir)/man1/quickemu.1 | ||||||
| 	rm -f $(DESTDIR)$(mandir)/man1/quickemu_conf.1 | 	rm -f $(DESTDIR)$(mandir)/man1/quickemu_conf.1 | ||||||
|  | 
 | ||||||
|  | uninstall_bins: | ||||||
|  | 	rm -f $(DESTDIR)$(bindir)/dh | ||||||
| 	rm -f $(DESTDIR)$(bindir)/quickget | 	rm -f $(DESTDIR)$(bindir)/quickget | ||||||
| 	rm -f $(DESTDIR)$(bindir)/quickemu | 	rm -f $(DESTDIR)$(bindir)/quickemu | ||||||
| 	rm -f $(DESTDIR)$(bindir)/macrecovery | 	rm -f $(DESTDIR)$(bindir)/macrecovery | ||||||
| 
 | 
 | ||||||
|  | uninstall: uninstall_icons uninstall_docs uninstall_bins | ||||||
|  | 
 | ||||||
| 
 | 
 | ||||||
| .PHONY: all | .PHONY: all | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue