1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-01-10 01:17:59 +03:00
openuds/client/full/linux/Makefile

52 lines
1.0 KiB
Makefile
Raw Normal View History

2015-04-10 16:46:15 +03:00
#!/usr/bin/make -f
# -*- makefile -*-
2015-04-20 08:33:01 +03:00
# Version
# VERSION := 1.7.5
2015-04-20 08:33:01 +03:00
2015-04-10 16:46:15 +03:00
# Directories
SOURCEDIR := ../src
LIBDIR := $(DESTDIR)/usr/lib/UDSClient
BINDIR := $(DESTDIR)/usr/bin
SBINDIR = $(DESTDIR)/usr/sbin
APPSDIR := $(DESTDIR)/usr/share/applications
PYC := $(shell find $(SOURCEDIR) -name '*.py[co]')
CACHES := $(shell find $(SOURCEDIR) -name '__pycache__')
clean:
rm -rf $(PYC) $(CACHES) $(DESTDIR)
install:
rm -rf $(DESTDIR)
mkdir -p $(LIBDIR)
2015-04-20 08:33:01 +03:00
#mkdir -p $(BINDIR)
#mkdir -p $(SBINDIR)
2015-04-10 16:46:15 +03:00
mkdir -p $(APPSDIR)
mkdir $(LIBDIR)/uds
# Cleans up .pyc and cache folders
rm -f $(PYC) $(CACHES)
cp $(SOURCEDIR)/uds/*.py $(LIBDIR)/uds
cp $(SOURCEDIR)/UDS*.py $(LIBDIR)
# URL Catchers elements for gnome/kde
cp desktop/UDSClient.desktop $(APPSDIR)
chmod 755 $(LIBDIR)/UDSClient.py
2015-04-20 08:33:01 +03:00
ifeq ($(DISTRO),targz)
cp installer.sh $(DESTDIR)/install.sh
tar czvf ../udsclient-$(VERSION).tar.gz -C $(DESTDIR) .
endif
2015-04-10 16:46:15 +03:00
# chmod 0755 $(BINDIR)/udsclient
uninstall:
rm -rf $(LIBDIR)
# rm -f $(BINDIR)/udsclient
2015-04-20 08:33:01 +03:00
# rm -rf $(CFGDIR)