diff --git a/Makefile b/Makefile index 9c18dc4..a8832ad 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ PACKAGE = Camera VERSION = 0.0.0 -SUBDIRS = src +SUBDIRS = data src RM ?= rm -f LN ?= ln -f TAR ?= tar -czvf @@ -21,6 +21,9 @@ dist: $(RM) -r -- $(PACKAGE)-$(VERSION) $(LN) -s -- . $(PACKAGE)-$(VERSION) @$(TAR) $(PACKAGE)-$(VERSION).tar.gz -- \ + $(PACKAGE)-$(VERSION)/data/Makefile \ + $(PACKAGE)-$(VERSION)/data/camera.desktop \ + $(PACKAGE)-$(VERSION)/data/project.conf \ $(PACKAGE)-$(VERSION)/src/camera.c \ $(PACKAGE)-$(VERSION)/src/main.c \ $(PACKAGE)-$(VERSION)/src/Makefile \ diff --git a/data/Makefile b/data/Makefile new file mode 100644 index 0000000..9242426 --- /dev/null +++ b/data/Makefile @@ -0,0 +1,21 @@ +PREFIX = /usr/local +DESTDIR = +MKDIR ?= mkdir -p +INSTALL ?= install +RM ?= rm -f + + +all: + +clean: + +distclean: clean + +install: + $(MKDIR) $(DESTDIR)$(PREFIX)/share/applications + $(INSTALL) -m 0644 -- camera.desktop $(DESTDIR)$(PREFIX)/share/applications/camera.desktop + +uninstall: + $(RM) -- $(DESTDIR)$(PREFIX)/share/applications/camera.desktop + +.PHONY: all clean distclean install uninstall diff --git a/data/camera.desktop b/data/camera.desktop new file mode 100644 index 0000000..d385a8c --- /dev/null +++ b/data/camera.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=Video camera +Comment=Take pictures using a video camera +Exec=camera +Icon=camera-video +Type=Application +Categories=AudioVideo;Video;GTK; +StartupNotify=true diff --git a/data/project.conf b/data/project.conf new file mode 100644 index 0000000..346c859 --- /dev/null +++ b/data/project.conf @@ -0,0 +1,4 @@ +dist=Makefile,camera.desktop + +[camera.desktop] +install=$(PREFIX)/share/applications diff --git a/project.conf b/project.conf index 9021aa9..5262b94 100644 --- a/project.conf +++ b/project.conf @@ -1,6 +1,6 @@ package=Camera version=0.0.0 -subdirs=src +subdirs=data,src config=h dist=Makefile,config.h