mirror of
https://github.com/evilsocket/opensnitch.git
synced 2025-03-04 16:44:46 +01:00
41 lines
1.6 KiB
Makefile
41 lines
1.6 KiB
Makefile
SOURCES += ../opensnitch/service.py \
|
|
../opensnitch/dialogs/prompt/__init__.py \
|
|
../opensnitch/dialogs/prompt/_utils.py \
|
|
../opensnitch/dialogs/prompt/_details.py \
|
|
../opensnitch/dialogs/prompt/_checksums.py \
|
|
../opensnitch/dialogs/prompt/_constants.py \
|
|
../opensnitch/dialogs/preferences.py \
|
|
../opensnitch/dialogs/ruleseditor.py \
|
|
../opensnitch/dialogs/processdetails.py \
|
|
../opensnitch/dialogs/stats.py
|
|
|
|
FORMS += ../opensnitch/res/prompt.ui \
|
|
../opensnitch/res/ruleseditor.ui \
|
|
../opensnitch/res/preferences.ui \
|
|
../opensnitch/res/process_details.ui \
|
|
../opensnitch/res/stats.ui
|
|
|
|
#TSFILES contains all *.ts files in locales/ and its subfolders
|
|
TSFILES := $(shell find locales/ -type f -name '*.ts')
|
|
#QMFILES contains all *.qm files in locales/ and its subfolders
|
|
QMFILES := $(shell find locales/ -type f -name '*.qm')
|
|
#if QMFILES is empty, we set it to phony target to run unconditionally
|
|
ifeq ($(QMFILES),)
|
|
QMFILES := "qmfiles"
|
|
endif
|
|
|
|
all: $(TSFILES) $(QMFILES)
|
|
|
|
#if any file from SOURCES or FORMS is older than any file from $(TSFILES)
|
|
#or if opensnitch_i18n.pro was manually modified
|
|
$(TSFILES): $(SOURCES) $(FORMS) opensnitch_i18n.pro
|
|
@pylupdate5 opensnitch_i18n.pro
|
|
|
|
#if any of the *.ts files are older that any of the *.qm files
|
|
#QMFILES may also be a phony target (when no *.qm exist yet) which will always run
|
|
$(QMFILES):$(TSFILES)
|
|
@./generate_i18n.sh
|
|
for lang in $$(ls locales/); do \
|
|
if [ ! -d ../opensnitch/i18n/$$lang ]; then mkdir -p ../opensnitch/i18n/$$lang ; fi ; \
|
|
cp locales/$$lang/opensnitch-$$lang.qm ../opensnitch/i18n/$$lang/ ; \
|
|
done
|