Added a desktop entry
This commit is contained in:
parent
2bff4bbb0f
commit
7e7510316a
5
Makefile
5
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 \
|
||||
|
|
21
data/Makefile
Normal file
21
data/Makefile
Normal file
|
@ -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
|
8
data/camera.desktop
Normal file
8
data/camera.desktop
Normal file
|
@ -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
|
4
data/project.conf
Normal file
4
data/project.conf
Normal file
|
@ -0,0 +1,4 @@
|
|||
dist=Makefile,camera.desktop
|
||||
|
||||
[camera.desktop]
|
||||
install=$(PREFIX)/share/applications
|
|
@ -1,6 +1,6 @@
|
|||
package=Camera
|
||||
version=0.0.0
|
||||
|
||||
subdirs=src
|
||||
subdirs=data,src
|
||||
config=h
|
||||
dist=Makefile,config.h
|
||||
|
|
Loading…
Reference in New Issue
Block a user